#include "S3C6410NetSinkFilter.h"

namespace cm_media
{
    int S3C6410NetSinkInputPin::receive(ByteBuffer* p_data)
    {
        ((S3C6410NetSinkFilter*)m_parent)->enqueueBuffer(p_data);

        return CmMediaSucess;
    }

    S3C6410NetSinkFilter::S3C6410NetSinkFilter():m_stopFlag(false),m_inputPin(NULL)
    {

    }

    S3C6410NetSinkFilter::~S3C6410NetSinkFilter()
    {

    }


    int S3C6410NetSinkFilter::setup()
    {
        return CmMediaFail;
    }

    int S3C6410NetSinkFilter::teardown()
    {
        return CmMediaFail;
    }


    int S3C6410NetSinkFilter::enqueueBuffer(ByteBuffer* p_buffer)
    {
        return CmMediaFail;
    }

    void S3C6410NetSinkFilter::run()
    {
        BaseNotification* p_bn = NULL;

        while(!m_stopFlag){
            p_bn = (BaseNotification*)waitDequeueNotification(0);
            switch( p_bn->getType() )
            {

            }
            p_bn = NULL;
        }
    }
}